package com.sdry.service.tdd;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.dao.tdd.DepartmentMapper;
import com.sdry.entity.tdd.Department;
import com.sdry.utils.PageBean;

@Service
@Transactional
public class DepartmentServiceImpl implements DepartmentService{

	@Resource DepartmentMapper departmentmapper;
	
	/**
	 * 添加返回id
	 */
	@Override
	public Long add(Department department) {
		return departmentmapper.add(department);
	}
	/**
	 * 多删除返回影响行数
	 */
	@Override
	public Integer delete(Serializable[] ids) {
		return departmentmapper.delete(ids);
	}
	/**
	 * 修改返回影响行数
	 */
	@Override
	public Integer update(Department param) {
		return departmentmapper.update(param);
	}
	/**
	 * 根据id查询内容
	 */
	@Override
	public Department queryById(Long id) {
		return departmentmapper.queryById(id);
	}
	/**
	 * 条件分页查询
	 */
	@Override
	public List<Department> findPageByMution(Department department) {
		return departmentmapper.findPageByMution(department);
	}
	/**
	 * 条件查询总条数
	 */
	@Override
	public Integer selectCountByMution(Department department) {
		return departmentmapper.selectCountByMution(department);
	}
	
	/**
	 * 条件查询
	 */
	@Override
	public List<Department> queryAllByMution(Department department) {
		return departmentmapper.queryAllByMution(department);
	}
	
	
	
	
	/**
	 * 不用的方法
	 * **************************************star***********************
	 */
	
	
	@Override
	public List<Department> queryAll(Map map) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<Department> findPage(PageBean pageBean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectCount(PageBean pageBean) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Department selectByPrimaryKey(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer insert(Department param) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer deleteById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}
	
	

	
	/**
	 * ****************************************end*************************************
	 */
	
	
	
	
	
	
	
	
}
